package com.stone.design.mode.chain.filter;

/**
 * filter 接口
 *
 * @author wenpan 2022/11/20 10:20 下午
 */
public interface Filter<T> {

    /**
     * Filter order.
     *
     * @return int val
     */
    int getOrder();

    /**
     * Do filter.
     *
     * @param context    context
     * @param nextFilter next filter
     */
    void doFilter(T context, Invoker<T> nextFilter);
}
